//css初始化 清除内外边距以及li默认样式
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
li {
  list-style: none;
}

//声明图标字体
@font-face {
  font-family: electronicFont;
  src: url(/font/DS-DIGIT.TTF);
}

body {
  background: url(/images/bg.jpg) 
  no-repeat top center;
  line-height: 1.15;
}

//盒子头部 高度100px
header {
  position: relative;
  height: 1.25rem;
  background: url(/images/head_bg.png) no-repeat ;
  background-size: 100% 100%;
  h1 {
    font-size: .475rem;
    color: #fff;
    text-align: center;
    line-height: 1rem;
  }

  //时间模块显示
  .showTime {
    position: absolute;
    right: .375rem;
    top: 0;
    line-height: .9375rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: .25rem;
  }
}

//页面主体盒子
.mainbox {
  display: flex;
  min-width: 1024px;
  max-width: 1920px;
  margin: 0 auto;
  padding: .125rem .125rem 0;
  // 左右侧的盒子
  .colum {
    flex: 3;  
  }
  // 中间盒子
  .colum:nth-child(2) {
    flex: 5;
    margin: 0 .125rem .1875rem;
    }

  //作为左侧和右侧盒子的公共样式
  .panel {
    position: relative;
    height: 3.875rem;
    border: 1px solid rgba(25, 186, 139, 0.17);;
    background: url(/images/line\(1\).png) rgba(255, 255, 255, 0.03);
    padding: 0 .1875rem .5rem .1875rem;
    margin-bottom: .1875rem ;
    &::before  {
      position: absolute;
      top: 0;
      left: 0;
      width: 10px;
      height: 10px;
      border-left: 2px solid #02a6b5;
      border-top: 2px solid #02a6b5;
      content: '';
    }

    &::after {
      position: absolute;
      top: 0;
      right: 0;
      width: 10px;
      height: 10px;
      border-right: 2px solid #02a6b5;
      border-top: 2px solid #02a6b5;
      content: '';
    }

    .panel-footer {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;

      &::before  {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 10px;
        height: 10px;
        border-left: 2px solid #02a6b5;
        border-bottom: 2px solid #02a6b5;
        content: '';
      }
  
      &::after {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 10px;
        height: 10px;
        border-right: 2px solid #02a6b5;
        border-bottom: 2px solid #02a6b5;
        content: '';
      }
    }

    h2 {
      height: .6rem;
      color: #fff;
      line-height: .6rem;
      font-size: .25rem;
      text-align: center;
      a {
        color: #fff;
        text-decoration: none;

      }
    }

    .chart {
      height: 3rem;
    }
  }
}

// 中间盒子中no数字模块制作
.colum .no {
 
  padding: .1875rem;
  background-color: rgba(101,132,226,0.1);
  // 无需给高度 内部模块自动撑开
  .no-hd {
    position: relative;
    border: 1px solid rgba(25,186,139,0.17);
      //制作边角
    &::before  {
      position: absolute;
      top: 0;
      left: 0;
      width: .375rem;
      height: .125rem;
      border-left: 2px solid #02a6b5;
      border-top: 2px solid #02a6b5;
      content: '';
    }
    
    &::after {
      position: absolute;
      bottom: 0;
      right: 0;
      width: .375rem;
      height: .125rem;
      border-right: 2px solid #02a6b5;
      border-bottom: 2px solid #02a6b5;
      content: '';
    }
    ul {
   
      display: flex;
    }
    li {
      position: relative;;
      flex: 1;
      height: 1rem;
      font-size: .875rem;
      color: #ffeb7b;
      text-align: center;
      font-family: "electronicFont";
      &::after {
        content: "";
        position: absolute;
        top: 25%;
        right: 0;
        height: 50%;
        width: 1px;
        background: rgba(255,255,255,0.2);
  
      }
    
    }

   
  }

  .no-bd {
    ul {
      display: flex;
      li {
        flex: 1;
        text-align: center;
        font-size: .225rem;
        height: .5rem;
        line-height: .5rem;
        padding-top: .125rem;
        color: rgba(255,255,255,0.7);
      }
    }

  }
  
}

// 中间盒子地图模块制作
.map {
  position: relative;
  height: 10.125rem;

  // .chart {

  // }

  .map1 {
    width: 6.475rem;
    height: 6.475rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: url(/images/map.png) no-repeat;
    background-size: 100% 100%;
    opacity: 0.3;
  }

  .map2 {
    position: absolute;
    width: 8.0375rem;
    height: 8.0375rem;
    background: url(/images/lbx.png);
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background-size: 100% 100%;
    opacity: 0.6;
    animation: rotate1 15s linear infinite;
    opacity: 0.6;
  }

  .map3 {
    position: absolute;
    height: 7.075rem;
    width: 7.075rem;
    background: url(/images/jt.png);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-size: 100% 100%;
    animation: rotate2 10s linear infinite;
    opacity: 0.6;
  }

  .chart {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10.125rem;
    background: url();
  }

  @keyframes rotate1 {
    form {
      transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
      transform:translate(-50%, -50%) rotate(360deg);
    }
  }

  @keyframes rotate2 {
    form {
      //translate保证在旋转的同时仍保留原来的位置
      transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
      transform:translate(-50%, -50%) rotate(-360deg);
    }
  }
}
